$(function(){
  //阅读并同意
  $("form>p strong").on("click",function(){
    $(this).toggleClass("cur");

  });
  //获取验证码
  var wait=60;
  function time(o) {
    if (wait == 0) {
      o.removeAttribute("disabled");           
      o.value="获取验证码";
      wait = 60;
    } else {
      o.setAttribute("disabled", true);
      o.value="重新发送(" + wait + ")";
      wait--;
      setTimeout(function() {
        time(o)
      },
      1000)
    }
  }
  document.getElementById("btn").onclick=function(){time(this);}

 // 团队效果
   $(".section div:nth-child(1) span").on("click",function(){
    $(this).toggleClass("cur");
    $(".section div:nth-child(1) p:nth-child(3),.section div:nth-child(1) p:nth-child(4),.section div:nth-child(1) p:nth-child(5),.section div:nth-child(1) p:nth-child(6)").slideToggle("slow");
  });

   // 团队效果
   $(".section div:nth-child(2) span").on("click",function(){
    $(this).toggleClass("cur");
    $(this).parent().nextAll("dl").slideToggle("slow")
  });

    //安全保障
    $(".section div:nth-child(3) span").on("click",function(){
      $(this).toggleClass("cur");
      $(".section div:nth-child(3) p:nth-child(4),.section div:nth-child(3) p:nth-child(5)").slideToggle("slow");
    })

$("form>div").on("click",function(){
$(this).addClass("cur").siblings().removeClass("cur");


})




  });